﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SHRP.AppServices.Core;
using WeifenLuo.WinFormsUI.Docking;
using System.Resources;
using System.Globalization;
using System.Threading;
using SHRP.UI.Properties;

namespace SHRP.UI
{
    public partial class TestForm : BaseFrm
    {
        public TestForm()
        {
            InitializeComponent();
            //CoreData.CoreDataContent.PropertyChanged += new PropertyChangedEventHandler(CoreDataContent_PropertyChanged);
            //ResourceManager res = new ResourceManager("SHRP.UI.Properties.Resources", typeof(Resources).Assembly);
            //CultureInfo culture = Thread.CurrentThread.CurrentCulture;

            //foreach (Control bt in this.Controls)
            //{
            //    bt.Text = res.GetString(bt.Name,culture);
            //}
        }

        //void CoreDataContent_PropertyChanged(object sender, PropertyChangedEventArgs e)
        //{
        //   //CoreData.CoreDataContent[CoreDataType.ActiveDockContent]
        //}

        private void button1_Click(object sender, EventArgs e)
        {
            DockContent content = CoreData.CoreDataContent[CoreDataType.ActiveDockContent] as DockContent;
            MessageBox.Show(content.Text);
            
        }
    }
}
